package com.kt.common.clazz.object1

class MyClass1 {
    //伴生对象
    companion object : Factory<MyClass1> {
        override fun create(): MyClass1 = MyClass1()
    }
}

interface Factory<T> {
    fun create(): T
}